package cqut.wys.impl;

import cqut.wys.dto.UserDTO;
import cqut.wys.service.UserService;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wuyoushan@zbj.com
 * @date 2017/4/19.
 */
public class UserServiceImpl implements UserService {

    @Override
    public String getUserName() {
        return "用户名";
    }

    @Override
    public List<UserDTO> getUserList() {
        List<UserDTO> list = new ArrayList<UserDTO>();
        UserDTO u1 = new UserDTO();
        u1.setName("jack");
        u1.setAge(20);
        u1.setGender("男");

        UserDTO u2 = new UserDTO();
        u2.setName("tom");
        u2.setAge(21);
        u2.setGender("女");

        UserDTO u3 = new UserDTO();
        u3.setName("rose");
        u3.setAge(19);
        u3.setGender("女");

        list.add(u1);
        list.add(u2);
        list.add(u3);
        return list;
    }
}
